package com.hzzc.core.model;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Unique;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import java.io.Serializable;


@javax.persistence.Table(name = "sso_role")
@com.gitee.sunchenbin.mybatis.actable.annotation.Table(name = "sso_role")
public class SSORole extends AutoIncrementEntity implements Serializable {

    /**
     * 名字
     * 角色名字唯一
     */
    @Unique
    @Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String name;

    /**
     * 描述
     */
    @Column(name = "msg", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String msg;

    /**
     * 系统Id
     */
    @Column(name = "application_id", type = MySqlTypeConstant.BIGINT)
    private Long applicationId;

    public String getMsg() {
        return msg;
    }

    public SSORole setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Long getApplicationId() {
        return applicationId;
    }

    public SSORole setApplicationId(Long applicationId) {
        this.applicationId = applicationId;
        return this;
    }

    public String getName() {
        return name;
    }

    public SSORole setName(String name) {
        this.name = name;
        return this;
    }


}
